package com.sdy.healthcode.biz.service;

import com.sdy.common.model.BizException;
import com.sdy.healthcode.biz.model.BlackList;
import com.sdy.mvc.service.BaseService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cgj
 * @since 2020-03-09
 */
public interface BlackListService extends BaseService<BlackList> {

    List<BlackList> getBlackList(Integer userId);

    Boolean banUser(Integer userId, Integer days, String reason) throws BizException;

    /**
     * 查询用户是否在黑名单
     */
    BlackList userInBlackList(Integer userId);
}
